import requests
import json


def main():
        
    url = "https://aip.baidubce.com/oauth/2.0/token?client_id=6jPaXeWH2HbfXsfaJo76vAub&client_secret=31cO2arqq9zGtlGXOQ78OFSW4qpK19b3&grant_type=client_credentials"
    
    payload = json.dumps("", ensure_ascii=False)
    headers = {
        'Content-Type': 'application/json',
        'Accept': 'application/json'
    }
    
    response = requests.request("POST", url, headers=headers, data=payload.encode("utf-8"))
    
    print(response.text)
    

if __name__ == '__main__':
    main()
